const merge = require('webpack-merge');
const path = require('path');
const common = require('./webpack.common.js');
const webpack = require('webpack');

module.exports = merge(common, {
	output: {
		filename: 'bundle.js',
		path: path.resolve(__dirname, 'dist')
	},
	devtool: 'eval',
	devServer: {
		contentBase: './dist',
		hot: true,
		port: 3001,
		host: '0.0.0.0'
	},

	plugins: [
		new webpack.HotModuleReplacementPlugin(),
	]
})